﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="url_rewrite_list.aspx.cs" Inherits="ByteSite.Web.admin.settings.url_rewrite_list" ValidateRequest="false" %>
<%@ Import namespace="ByteSite.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>URL配置管理</title>
<link rel="stylesheet" type="text/css" href="../../scripts/artdialog/ui-dialog.css" />

<link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
<link href="../skin/uikit/css/uikit.min.css" rel="stylesheet" />
<script type="text/javascript" src="../skin/uikit/js/uikit.min.js"></script>
<script type="text/javascript" src="../skin/uikit/js/uikit-icons.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" src="../../scripts/xm-select/xm-select.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
</head>

<body class="mainbody">
<form id="form1" runat="server">


<!--工具栏-->
<div class="uk-grid-match uk-child-width-auto uk-flex-between uk-grid">
    <div class="uk-first-column">
        <div class="uk-panel">
            <div class="uk-button-group uk-first-column">
                <a class="uk-button uk-button-default" uk-icon="check" href="javascript:;" onclick="checkAll(this);" uk-tooltip="全选"></a>
                <a class="uk-button uk-button-default" uk-icon="plus" href="url_rewrite_edit.aspx?action=<%=DTEnums.ActionEnum.Add %>" uk-tooltip="新增"></a>
                <asp:LinkButton ID="btnDelete" runat="server" uk-icon="trash" CssClass="uk-button uk-button-default" OnClientClick="return ExePostBack('btnDelete','本操作会导致网站前台无法运作，是否继续?');" onclick="btnDelete_Click" uk-tooltip="删除"></asp:LinkButton>
                <div class="">                    
                    <button type="button" class="uk-button uk-button-default" uk-icon="list" uk-tooltip="选择更多筛选条件"></button>
                    <div class="uk-width-xxlarge" uk-dropdown="mode:click">
                        <div class="uk-dropdown-grid" uk-grid>
                            <div class="uk-first-column uk-width-1-2">
                                 <asp:DropDownList ID="ddlChannel" runat="server" CssClass="uk-select" AutoPostBack="True" onselectedindexchanged="ddlChannel_SelectedIndexChanged"></asp:DropDownList>
                            </div>
                            <div class="uk-width-1-2">
                                <asp:DropDownList ID="ddlPageType" runat="server" CssClass="uk-select" AutoPostBack="True" onselectedindexchanged="ddlPageType_SelectedIndexChanged">
                                  <asp:ListItem Selected="True" Value="">所有类型</asp:ListItem>
                                  <asp:ListItem Value="index">首页</asp:ListItem>
                                  <asp:ListItem Value="list">列表页</asp:ListItem>
                                  <asp:ListItem Value="category">栏目页</asp:ListItem>
                                  <asp:ListItem Value="detail">详细页</asp:ListItem>
                                  <asp:ListItem Value="plugin">插件页</asp:ListItem>
                                  <asp:ListItem Value="other">其它页</asp:ListItem>
                                </asp:DropDownList>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <asp:Repeater ID="rptList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="uk-table uk-table-striped uk-table-justify uk-table-middle uk-table-hover uk-table-divider">
    <thead><tr>
      <th width="8%" style="white-space:nowrap;word-break:break-all;">选择</th>
      <th class="uk-text-left">调用名称</th>
      <th width="20%"  class="uk-text-left">源页面名称</th>
      <th width="18%"  class="uk-text-left">继承类名</th>
      <th width="15%"  class="uk-text-left">模板名称</th>
      <th width="10%">归属频道</th>
      <th width="8%">分页数量</th>
      <th width="8%">操作</th>
    </tr></thead>
  </HeaderTemplate>
  <ItemTemplate>
    <tr>
      <td align="center">
        <asp:CheckBox ID="chkId" CssClass="checkall uk-checkbox" runat="server" />
        <asp:HiddenField ID="hideName" Value='<%#Eval("name")%>' runat="server" />
      </td>
      <td class="uk-text-left"><%#Eval("name")%></td>
      <td class="uk-text-left"><%#Eval("page")%></td>
      <td class="uk-text-left"><%#Eval("inherit")%></td>
      <td class="uk-text-left"><%#Eval("templet")%></td>
      <td><%#Eval("channel").ToString() != "" ? Eval("channel") : "-"%></td>
      <td><%#Eval("pagesize").ToString() != "" ? Eval("pagesize") : "-"%></td>
      <td><a href="url_rewrite_edit.aspx?action=<%#DTEnums.ActionEnum.Edit %>&name=<%#Eval("name")%>">修改</a></td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
  </table>
  </FooterTemplate>
  </asp:Repeater>
</div>
<!--/列表-->
</form>
</body>
</html>
